import request from '@/utils/request'

export const add = function(params){
  return request({
    url: '/faq_type/add',
    method: 'post',
    data: params,
  })
}

export const list = function(params){
  return request({
    url: '/faq_type/list',
    method: 'get',
    params: params,
  })
}


export const editGet = function(params){
  return request({
    url: '/faq_type/edit',
    method: 'get',
    params: params,
  })
}

export const editPost = function(params){
  return request({
    url: '/faq_type/edit',
    method: 'post',
    data: params,
  })
}

export const del = function(params){
  return request({
    url: '/faq_type/del',
    method: 'post',
    data: params,
  })
}

export const faqTypeList = function(params){
  return request({
    url: '/faq_type/faq_type_list',
    method: 'get',
    params: params,
  })
}

export const faqSecondTypeList = function(params){
  return request({
    url: '/faq_type/faq_second_type_list',
    method: 'get',
    params: params,
  })
}

export const allFaqTypeList = function(params){
  return request({
    url: '/faq_type/all_faq_type_list',
    method: 'get',
    params: params,
  })
}

export const allFaqSecondTypeList = function(params){
  return request({
    url: '/faq_type/all_faq_second_type_list',
    method: 'get',
    params: params,
  })
}



